package space.panker916.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import space.panker916.pojo.Comment;

import java.util.List;


@Mapper
@Repository
public interface CommentMapper {

    List<Comment> selectCommentsByEntity(int entityType, int entityId, int offset, int limit);

    int selectCountByEntity(int entityType, int entityId);

    int insertComment(Comment comment);

}
